package com.itheima.service;

import com.itheima.entity.common.UploadResult;
import org.springframework.web.multipart.MultipartFile;

public interface PicUploadService {

    /**
     * 单文件上传
     * @param file
     * @param type 业务类型
     *        account: 用户模块
     *        goods: 商品模块
     */
    UploadResult upload(MultipartFile file, String type);
}
